function __client_stub (control, eventType, eventAttrName) {
    if (!control) return;
    var theForm = control.form;
    if (!theForm) return;

    var sender = document.getElementById("__event.sender");
    var type   = document.getElementById("__event.type");
    var attr   = document.getElementById("__event.attr");

    if (!sender || !type || !attr) return;
    sender.value = control.id;
    type.value   = eventType;
    attr.value   = eventAttrName;

    theForm.submit ();
}